
 class AutoHilo implements Runnable {
	
	private Thread me ;
	
	public AutoHilo() {
		me = new Thread(this);
		me.start();
			
	}
	
	public void run(){
		
		if (me==Thread.currentThread() ) 
			for (int i=0;i<10;i++)
		      System.out.println ("Dentro de AutoHilo.run() ");
	}

	public static void main (String[] args )  {
		@SuppressWarnings("unused")
		AutoHilo miThread = new AutoHilo();
		for(int i=0;i<19;i++)
			System.out.println ("Dentro del main ");
	}
}
